cmake_minimum_required(VERSION 3.16)

project(View3D VERSION 0.1 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS Quick)

qt_standard_project_setup(REQUIRES 6.5)

qt_add_executable(appView3D
    main.cpp
)

qt_add_qml_module(appView3D
    URI View3D
    VERSION 1.0
    QML_FILES
        Main.qml
        RusticManor/RusticManor.qml
        RESOURCES RusticManor/maps/textureData7.png RusticManor/maps/textureData12.png RusticManor/maps/textureData17.png RusticManor/maps/textureData104.png
        RESOURCES RusticManor/meshes/_5_texture.mesh RusticManor/meshes/_8_texture.mesh RusticManor/meshes/mesh_id36_mesh.mesh RusticManor/meshes/mesh_id44_mesh.mesh RusticManor/meshes/mesh_id52_mesh.mesh RusticManor/meshes/mesh_id54_mesh.mesh RusticManor/meshes/mesh_id148_mesh.mesh RusticManor/meshes/mesh_id154_mesh.mesh RusticManor/meshes/mesh_id156_mesh.mesh RusticManor/meshes/mesh_id162_mesh.mesh RusticManor/meshes/mesh_id164_mesh.mesh RusticManor/meshes/mesh_id168_mesh.mesh RusticManor/meshes/mesh_id170_mesh.mesh RusticManor/meshes/mesh_id176_mesh.mesh RusticManor/meshes/mesh_id188_mesh.mesh RusticManor/meshes/mesh_id190_mesh.mesh RusticManor/meshes/mesh_id192_mesh.mesh RusticManor/meshes/mesh_id194_mesh.mesh RusticManor/meshes/mesh_id196_mesh.mesh RusticManor/meshes/mesh_id198_mesh.mesh RusticManor/meshes/mesh_id200_mesh.mesh RusticManor/meshes/mesh_id202_mesh.mesh RusticManor/meshes/mesh_id204_mesh.mesh RusticManor/meshes/mesh_id206_mesh.mesh RusticManor/meshes/mesh_id208_mesh.mesh RusticManor/meshes/mesh_id210_mesh.mesh RusticManor/meshes/mesh_id212_mesh.mesh RusticManor/meshes/mesh_id214_mesh.mesh RusticManor/meshes/mesh_id216_mesh.mesh RusticManor/meshes/mesh_id218_mesh.mesh RusticManor/meshes/mesh_id220_mesh.mesh RusticManor/meshes/mesh_id222_mesh.mesh RusticManor/meshes/mesh_id224_mesh.mesh RusticManor/meshes/mesh_id226_mesh.mesh RusticManor/meshes/mesh_id228_mesh.mesh RusticManor/meshes/mesh_id230_mesh.mesh RusticManor/meshes/mesh_id232_mesh.mesh RusticManor/meshes/mesh_id234_mesh.mesh RusticManor/meshes/mesh_id236_mesh.mesh RusticManor/meshes/mesh_id238_mesh.mesh RusticManor/meshes/mesh_id240_mesh.mesh RusticManor/meshes/mesh_id242_mesh.mesh RusticManor/meshes/mesh_id244_mesh.mesh RusticManor/meshes/mesh_id246_mesh.mesh RusticManor/meshes/mesh_id248_mesh.mesh RusticManor/meshes/mesh_id250_mesh.mesh RusticManor/meshes/mesh_id252_mesh.mesh RusticManor/meshes/mesh_id254_mesh.mesh RusticManor/meshes/mesh_id256_mesh.mesh RusticManor/meshes/mesh_id258_mesh.mesh RusticManor/meshes/mesh_id260_mesh.mesh RusticManor/meshes/mesh_id262_mesh.mesh RusticManor/meshes/mesh_id264_mesh.mesh RusticManor/meshes/mesh_id266_mesh.mesh RusticManor/meshes/mesh_id268_mesh.mesh RusticManor/meshes/mesh_id270_mesh.mesh RusticManor/meshes/mesh_id272_mesh.mesh RusticManor/meshes/mesh_id274_mesh.mesh RusticManor/meshes/mesh_id276_mesh.mesh RusticManor/meshes/mesh_id278_mesh.mesh RusticManor/meshes/mesh_id280_mesh.mesh RusticManor/meshes/mesh_id282_mesh.mesh RusticManor/meshes/mesh_id284_mesh.mesh RusticManor/meshes/node_id37.mesh RusticManor/meshes/node_id41.mesh RusticManor/meshes/node_id43.mesh RusticManor/meshes/node69_material.mesh RusticManor/meshes/node75_material.mesh RusticManor/meshes/root.mesh
        MarsCuriosityRover/MarsCuriosityRover.qml
        RESOURCES MarsCuriosityRover/maps/textureData.png MarsCuriosityRover/maps/textureData7.png MarsCuriosityRover/maps/textureData12.png MarsCuriosityRover/maps/textureData17.png MarsCuriosityRover/maps/textureData22.png MarsCuriosityRover/maps/textureData27.png MarsCuriosityRover/maps/textureData32.png MarsCuriosityRover/maps/textureData34.png MarsCuriosityRover/maps/textureData39.png
        RESOURCES MarsCuriosityRover/meshes/mesh_id435_mesh.mesh MarsCuriosityRover/meshes/mesh_id437_mesh.mesh MarsCuriosityRover/meshes/mesh_id439_mesh.mesh MarsCuriosityRover/meshes/mesh_id441_mesh.mesh MarsCuriosityRover/meshes/mesh_id443_mesh.mesh MarsCuriosityRover/meshes/mesh_id445_mesh.mesh MarsCuriosityRover/meshes/mesh_id447_mesh.mesh MarsCuriosityRover/meshes/mesh_id449_mesh.mesh MarsCuriosityRover/meshes/mesh_id451_mesh.mesh MarsCuriosityRover/meshes/mesh_id453_mesh.mesh
    )

# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
set_target_properties(appView3D PROPERTIES
#    MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appView3D
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

target_link_libraries(appView3D
    PRIVATE Qt6::Quick
)


